package com.zh.goods.service.impl;


import com.zh.goods.dao.LabelDao;
import com.zh.goods.domain.LabelDO;
import com.zh.goods.service.LabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class LabelServiceImpl implements LabelService {
	@Autowired
	private LabelDao labelDao;
	
	@Override
	public LabelDO get(String id){
		return labelDao.get(id);
	}
	
	@Override
	public List<LabelDO> list(Map<String, Object> map){
		return labelDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return labelDao.count(map);
	}
	
	@Override
	public int save(LabelDO label){
		return labelDao.save(label);
	}
	
	@Override
	public int update(LabelDO label){
		return labelDao.update(label);
	}
	
	@Override
	public int remove(String id){
		return labelDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return labelDao.batchRemove(ids);
	}

	@Override
	public List<LabelDO> getAll(LabelDO label) {
		return labelDao.getAll(label);
	}

}
